﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加商品属性</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" href="common/layui/css/layui.css" media="all">
    <link rel="stylesheet" type="text/css" href="common/bootstrap/css/bootstrap.css" media="all">
    <link rel="stylesheet" type="text/css" href="common/global.css" media="all">
    <link rel="stylesheet" type="text/css" href="css/personal.css" media="all">
</head>

<style>
    /*日期的css开始*/
    body {
        padding: 20px;
    }

    .demo-input {
        padding-left: 10px;
        height: 38px;
        min-width: 262px;
        line-height: 38px;
        border: 1px solid #e6e6e6;
        background-color: #fff;
        border-radius: 2px;
    }

    .demo-footer {
        padding: 50px 0;
        color: #999;
        font-size: 14px;
    }

        .demo-footer a {
            padding: 0 5px;
            color: #01AAED;
        }
    /*日期的css结束*/
</style>

<!--获取日期js-->
<script src="laydate/laydate.js"></script>
<script>
    lay('#version').html('-v' + laydate.v);

    //执行一个laydate实例
    laydate.render({
        elem: '#test1' //指定元素
    });
</script>
<!--获取生产日期结束-->
<body>
    <section class="layui-larry-box">
        <div class="larry-personal">
            <header class="larry-personal-tit">
                <span>添加商品属性</span>
            </header><!-- /header -->

            <div class="larry-personal-body clearfix">
                <form class="layui-form col-lg-5" action="" method="post">
                    <div class="layui-form-item">
                        <label class="layui-form-label">商品名称</label>
                        <div class="layui-input-block">
                            <input type="text" autocomplete="off" class="layui-input" placeholder="请输入商品名称">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">商品价格</label>
                        <div class="layui-input-block">
                            <input type="text" autocomplete="off" class="layui-input" placeholder="请输入价格">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">商品原始价格</label>
                        <div class="layui-input-block">
                            <input type="text" autocomplete="off" class="layui-input" placeholder="请输入商品原始价格">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">商品重量</label>
                        <div class="layui-inline">
                            <input type="text" name="username" lay-verify="required" autocomplete="off" class="layui-input " placeholder="请输入管理员昵称">
                        </div>
                        <div class="layui-inline">
                            <select name="browseLook" class="newsLook" lay-filter="browseLook">
                                <option value="0">Kg</option>
                                <option value="1">g</option>
                            </select>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">商品数量</label>
                        <div class="layui-input-block">
                            <input type="text" autocomplete="off" class="layui-input" placeholder="请输入数量">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">商品已销售量</label>
                        <div class="layui-input-block">
                            <input type="text" autocomplete="off" class="layui-input" placeholder="请输入已销售数量">
                        </div>
                    </div>


                    <div class="layui-form-item">
                        <label class="layui-form-label">商品类别</label>
                        <div class="layui-inline">
                            <input type="text" name="username" lay-verify="required" autocomplete="off" class="layui-input " placeholder="请输入管理员昵称">
                        </div>
                        <div class="layui-inline">
                            <select name="browseLook" class="newsLook" lay-filter="browseLook">
                                <option value="0">包装</option>
                                <option value="1">盒装</option>
                            </select>
                        </div>
                    </div>


                    <div class="layui-form-item">
                        <label class="layui-form-label">所属城市</label>
                        
                        <div class="layui-inline">
                            <select name="browseLook" class="newsLook" lay-filter="browseLook">
                                <option value="0">北京</option>
                                <option value="1">上海</option>
                            </select>
                        </div>
                        <div class="layui-inline">
                            <select name="browseLook" class="newsLook" lay-filter="browseLook">
                                <option value="0">海淀区</option>
                                <option value="1">朝阳区</option>
                            </select>
                        </div>
                    </div>

                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label">商品描述</label>
                        <div class="layui-input-block">
                            <textarea placeholder="既然选择了远方，便只顾风雨兼程；路漫漫其修远兮，吾将上下而求索" value="" class="layui-textarea"></textarea>
                        </div>
                    </div>



                   


                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </section>
    <script type="text/javascript" src="common/layui/layui.js"></script>

    <!--文件上传js-->
    <script type="text/javascript">
        layui.use(['form', 'upload'], function () {
            var form = layui.form();
            layui.upload({
                url: '',//上传接口
                success: function (res) {
                    //上传成功后的回调
                    console.log(res)
                }
            });

        });
    </script>


</body>
</html>